<template>
	<view class="park_d">
		<swiper class="swiper" :indicator-dots="true" :autoplay="isAuto" @change="()=>isAuto=true">
			<swiper-item class="post_r" v-for="item in imgs" :key='item.id'>
				<image v-if="item.type!=2" class="swiper_item" :src="item.img" mode="" @click="clickFm(item)"></image>
				<video v-if="item.type==2" :poster='item.img' @play='isAuto=false' style="width: 100%;height: 100%;" :autoplay="false" class="video" :src='item.url'></video>
				<view class="see1">
					<image class="see_img" src="https://wqq103910.oss-cn-hangzhou.aliyuncs.com/images/4/2020/09/see.png" mode="widthFix"></image>{{data.read_num||0}}
					<image class="see_img m_left" src="https://wqq103910.oss-cn-hangzhou.aliyuncs.com/images/4/2020/09/fx_icon.png" mode="widthFix"></image>{{data.share_num||0}}
				</view>
			</swiper-item>
		</swiper>
		<!-- <view class="swiper" :indicator-dots="true" :autoplay="isAuto" @change="()=>isAuto=true">
			<image class="swiper_item" :src="data.bg_img" mode=""></image>
			<view class="see1">
				<image class="see_img" src="https://wqq103910.oss-cn-hangzhou.aliyuncs.com/images/4/2020/09/see.png" mode="widthFix"></image>{{data.read_num||0}}
				<image class="see_img m_left" src="https://wqq103910.oss-cn-hangzhou.aliyuncs.com/images/4/2020/09/fx_icon.png" mode="widthFix"></image>{{data.share_num||0}}
			</view>
		</view> -->
		<view class="flex">
			<image class="tx" :src="data.logo" mode="widthFix"></image>
			<view class="park_name1">{{data.city_name}}</view>
			<!-- <view class="">
				<view class="level" v-show="data.level && data.level.indexOf('民营')==-1">{{data.level}}</view>
				<view class="" style="font-size: 12px; margin-top:4px;text-align: canter;" @click="toCityD">{{data.city_name[data.city_name.length-1].substr(0,3)}}</view>
			</view> -->
		</view>
		<view class="main">
			<view class="tip" v-for="item in chainName" :key='item'>{{item}}</view>
			<!-- <view class="mj">
				<view class="mj_l">
					<view class="l_t">城市面积</view>
					<view class="num">{{data.city_area}}</view>
				</view>
				<view class="flex_t_i" @click="phone()"> 
					<image class="image" src="~@/static/image/dianhua.png" mode="widthFix"></image>
					<view class="">电话</view>
				</view>
			</view> -->
			<view class="add">
				<view class="add_l">
					<view class="l_f">
						<image class="img3" src="https://wqq103910.oss-cn-hangzhou.aliyuncs.com/images/fuzhou/image/address.png" mode="widthFix"></image>
						<view class="">{{data.city_name}}</view>
					</view>
				</view>
				<view class="flex_t_i" @click="toMap">
					<image  class="image" src="https://wqq103910.oss-cn-hangzhou.aliyuncs.com/images/fuzhou/image/daohang.png" mode="widthFix"></image>
					<view class="">导航</view>
				</view>
			</view>
		</view>	
		
		
		<view class="" v-if="chainList.length>0">
			<view class="d_titla">
				<image src="https://wqq103910.oss-cn-hangzhou.aliyuncs.com/images/fuzhou/image/detail/park_js.png" mode=""></image>
				<view class="title_text" >城市介绍</view>
			</view>
			<view class="jiesao" :class="{open:isOpen==false}" ref="fx">
				<view class="toopen" @click="changeO" v-if="isOpen==false">点击展开全部</view>
				<rich-text  :nodes='data.content'></rich-text>
				<view class="" style="text-align: center;margin-top: 10px; color: #007AFF;" @click="changeO1" v-if="isOpen==true">点击收起</view>
			</view>
		</view>
		
		
		<view class="" v-if="chainList.length>0">
			<view class="d_titla">
				<image src="https://wqq103910.oss-cn-hangzhou.aliyuncs.com/images/fuzhou/image/detail/chain.png" mode=""></image>
				<view class="title_text" >重点产业</view>
			</view>
		</view>
		<view class="chain_content" v-if="chainList.length>0">
			<view class="chain_list">
				<view class="chain_item" v-for="(item1,index) in chainList" :key='index1' @click="toChain1(index)">
					<image src="https://wqq103910.oss-cn-hangzhou.aliyuncs.com/images/fuzhou/image/detail/tupu.png" class="rt" v-if="item1.id"></image>
					<image v-if="item1.img" :src="item1.img" mode=""></image>
					<image v-else src="https://wqq103910.oss-cn-hangzhou.aliyuncs.com/images/fuzhou/image/detail/chain1.png" mode=""></image>
					<view class="">{{item1.chain_name}}</view>
					<image v-if="item1.chain_name == item.chain_name" style="width: 24px;"  src="https://wqq103910.oss-cn-hangzhou.aliyuncs.com/images/fuzhou/image/detail/xshang.png" mode="widthFix"></image>
				</view>
			</view>
		</view>
		
		<view class="chain_view" v-if="item.chain_name">
			<view class="" style="display: flex;">
				<view class="title_c">{{item.chain_name}}</view>
				<!-- <view class="title_c" v-if="item.id>0" style="color:#007AFF;font-size: 12px;background: #fff;" @click="toDetailChain()">查看图谱</view> -->
			</view>
			<view class="c_main">
				<view class="m_item" @click="showList(0)">
					<view class="title_m_i">全部企业</view>
					<view class="num">{{ qbtotal+' '}}<text class="jia"> 家</text></view>
				</view>
				<view class="m_item" @click="showList(1)">
					<view class="title_m_i">规上企业</view>
					<view class="num">{{ gstotal+' '}}<text class="jia"> 家</text></view>
				</view>
				<view class="m_item" @click="showList(2)">
					<view class="title_m_i">高新技术</view>
					<view class="num">{{ gxtotal+' '}}<text class="jia"> 家</text></view>
				</view>
				<view class="m_item" @click="showList(3)">
					<view class="title_m_i">其他企业</view>
					<view class="num">{{ qtotal+' '}}<text class="jia"> 家</text></view>
				</view>
			</view>
		</view>
		
		<view class="" v-if="imgs1.length>0">
			<view class="d_titla">
				<image src="https://wqq103910.oss-cn-hangzhou.aliyuncs.com/images/fuzhou/image/detail/park_zy.png" mode=""></image>
				<view class="title_text" >城市资源</view>
			</view>
		</view>
		
		<swiper class="swiper1" v-if="imgs1.length>0" :indicator-dots="false" :autoplay="true" :circular='true' previous-margin='60px' next-margin	='60px' @change="(event)=>{zyIndex=event.detail.current}">
			<swiper-item class="swiper_item1" v-for="(item,index) in imgs1" :key='item.id'>
				<image class="small" @click="open1(index)" :class="zyIndex==index?'big':''" :src="item.thumb" mode=""></image>
			</swiper-item>
		</swiper>


		<view class="title2" v-if="pList.length>0">
			<view class="flex_t">
				<view class="active t">重点项目<image class="t_a" src="https://wqq103910.oss-cn-hangzhou.aliyuncs.com/images/4/2020/09/t_a.png" mode="widthFix"></image></view>
			</view>
		</view>
		<!-- <hot-pro-list v-if="pList.length>0" :proList='pList'></hot-pro-list> -->
		
		<view style="width: 100%;height:20px"></view>
		
		<view class="bottom_list">
			<view class='flex type_div'>
				<view @click="changeType(item)" class="listType" :class="type_name==item.id?'active_item':''" v-for="(item,index) in listType" :key="index">{{item.name}}</view>
			</view>
			<listPage height='calc(100% - 50px)' :type_name='type_name' :list='list' :total='total' @getMore='getMore'>
				<endlist :isLoad='isLoad' :isfinsh='isfinsh' :length='list.length'></endlist>
			</listPage>
		</view>
		<bottomDetail :data='data' type='1' :id='id'></bottomDetail>
		<drawer ref="showRight" :width='300' @close='isshow=false' @touchmove.stop.prevent="()=>{}">
			<listPage height='100%' :isSmall='true' type_name='company' :list='companyList' :total='total1' @getMore='getMore1'>
				<endlist :isLoad='isLoad1' :isfinsh='isfinsh1' :length='companyList.length'></endlist>
			</listPage>
		</drawer>
		

		<open ref="open" @showhaibao='showhaibao'></open>
	</view>
</template>
<script>
	import bottomDetail from '@/components/bottomDetail.vue'
	import open from '@/components/open/open.vue'
	import listPage from '@/components/listPage.vue'
	import endlist from '@/components/endlist.vue'
	import drawer from '@/components/drawer/drawer.vue'
	// import WXBizDataCrypt from "@/utils/WXBizDataCrypt.js";
	import { GetSuCityInfo,ApplycomreportAdd ,GetUseInfo,CreateQrcode,GetCompanyTotal,GetCityHonor,policy ,GetCityImg,parklist,companylist,GetNeedsList,gz,ShareAdd,pl ,myIndustrychain,	GetChainDistTwoByCityId, GetChainDistByCityId,localprojects } from '../../utils/api.js'
	export default {
		data() {
			return {
				data:{city_name:[]},
				isSc:false,
				isSSS:true,
				companyList:[],
				list:[{}],
				id:'',
				isNewRenderDone:true,
				plList:[],
				bottom_iphone:uni.getStorageSync('bottom')||false,
				chainList:[],
				chainName:[],
				pList:[],
				childrenList:[],
				isOpen:false,
				imgs:[],
				imgs1:[],
				isAuto:true,
				zyIndex:0,
				item:{chain_name:'',id:''},
				isfinsh:[false,false,false,false,true],
				listAll:[[],[],[],[],[]],
				pageL:[1,1,1,1,1],
				isMore:true,
				listType:[
					{name:'园区',id:'park'},
					{name:'企业',id:'company'},
					{name:'项目',id:'project'},
				],
				type_index:0,
				scroll_type_id:'type_id_0',
				index1:0,
				height:0,
				gstotal:0,
				gxtotal:0,
				qbtotal:0,
				qtotal:0,
				total:0,
				total1:0,
				user_id:'',
				userinfo:{},
				isfinsh:false,
				isfinsh1:false,
				isLoading:false,
				companyList:[],
				clquery:{},
				type_name:'park',
				pagelist:1,
				isLoad:false,
				isLoad1:false,
				list:[]
			}
		}, 
		components: {
			open,
			drawer,
			listPage,
			endlist,
			bottomDetail
		}, 
		onLoad(option){
			uni.getSystemInfo({
				success: (res) => {
				  this.height =	res.windowHeight - 120
				}
			});
			if(option.scene){
				let data = option.scene.split('&')
				this.id= data[0]
				this.user_id= data[1]
			}else{
				this.id= option.id
				this.user_id= option.user_id
			}
			if(this.user_id){
				GetUseInfo({user_id:this.user_id}).then(res=>{
					this.userinfo = res.data
				})
			}
			
			this.getdetail(this.id)
			this.getImg(this.id)
			this.getZy(this.id)
			this.getList()
			
			GetChainDistTwoByCityId({city_id:this.id}).then(res=>{
				res.data.unshift({chain_name:'全部',id:'',chain_id:''})
				this.chainList=res.data
				if(res.data.length>0)
				this.item = res.data[0]
				this.getGStotal()
				this.getGXtotal()
				this.getQBtotal()
				this.getQTtotal()
			})
			GetChainDistByCityId({city_id:this.id}).then(res=>{
				this.chainName=res.data
			})
		},
		onShareTimeline() {
			ShareAdd({identification:this.data.id,type:1,name:this.data.city_name})
			return {
				title: this.data.city_name+' | 投资钟祥',
				query:`from=pyq&id=${this.data.id}`
			}
		},
		onShareAppMessage() {
			ShareAdd({identification:this.data.id,type:1,name:this.data.city_name})
			return {
				title: this.data.city_name+' | 投资钟祥',
				path:'/pages/cityDetail/cityDetail?id=' + this.id + '&user_id='
			}
		},
		onReachBottom() {

		},
		onShow(){

		},
		methods: {
			changeType(e){
				this.type_name = e.id
				this.pagelist = 1
				this.list = []
				this.isfinsh = false
				this.$nextTick(()=>{
					this.getList()
				})
			},
			getMore(){
				this.pagelist += 1
				this.getList()
			},
			getList(){
				if(this.isfinsh){
					return
				}
				let data = {
					city_id:this.id,
					page:this.pagelist,
					// lat:uni.getStorageSync('lat'),
					// lng:uni.getStorageSync('lng'),
				}
				this.isLoad = true
				let api = this.type_name == 'project'?localprojects.getList(data):
									this.type_name == 'park'?parklist(data):
									this.type_name == 'company'?companylist(data):companylist(data)
				api.then(res=>{
					this.list.push(...res.data.data)
					this.total = res.data.total
					this.isLoad = false
					if(res.data.last_page == this.pagelist){
						this.isfinsh = true
					}
				})
			},
			toCityD(){
				uni.navigateTo({
					url: '/pages/city/city?id=' + this.data.area_id||this.data.city_id||this.data.province_id
				})
			},
			call(){
				uni.makePhoneCall({
					phoneNumber: this.userinfo.mobile, 
				})
			},
			closeU(){
				this.user_id=''
			},
			changeO(){
				this.isOpen=true
			},
			changeO1(){
				this.isOpen=false
			},
			getMore1(){
				this.page += 1
				this.getCList()
			},
			getCList(){
				if(this.isfinsh1){
					return
				}
				this.isLoading = true
				companylist({...this.clquery,page:this.page}).then(res=>{
					if(this.page==1){
						this.companyList = res.data.data
					}else{
						this.companyList = this.companyList.concat(res.data.data)
					}
					if(this.companyList.length == res.data.total){
						this.isfinsh1 = true
					}
					this.total1 = res.data.total
					this.isLoading = false
				})
			},
			
			showList(type){
				if((type==1&&this.gstotal==0)||(type==2&&this.gxtotal==0)||(type==1&&this.qbtotal==0)){
					uni.showToast({
						title:'暂无数据',
						icon:'none'
					})
					return
				}
				this.isshow=true
				this.$refs.showRight.show()
				let data = {
					label_id:type==0?'':type==1?50150:type==3?179790:1,
					yun_chain_id:this.item.chain_id,
					city_id:this.id,
				}
				this.companyList = []
				this.total1 = 0
				this.isfinsh1 = false
				this.page = 1
				this.clquery = data
				this.getCList()
			},
			getQTtotal(){
				GetCompanyTotal({city_id:this.id,label_id:179790,yun_chain_id:this.item.chain_id}).then(res=>{
					this.qtotal = res.data
				})
			},
			getGStotal(){
				GetCompanyTotal({city_id:this.id,label_id:50150,yun_chain_id:this.item.chain_id}).then(res=>{
					this.gstotal = res.data
				})
			},
			getQBtotal(){
				GetCompanyTotal({city_id:this.id,yun_chain_id:this.item.chain_id}).then(res=>{
					this.qbtotal = res.data
				})
			},
			getGXtotal(){
				GetCompanyTotal({city_id:this.id,label_id:1,yun_chain_id:this.item.chain_id}).then(res=>{
					this.gxtotal = res.data
				})
			},
			toPDetail(item){
				uni.navigateTo({
					url:'/pages/pDetail/pDetail?id='+item.id
				})
			},
			clickFm(item){
				console.log(item)
				if(item.type==1){
					uni.previewImage({
						urls:[item.img]||[item.thumb],
					})
				}else if(item.type==3){
					uni.navigateTo({
						url:item.url
					})
					uni.switchTab({
						url:item.url
					})
				}else if(item.type==4){
					uni.navigateTo({
						url:`/pages/web/web?url=${item.url}`
					})
				}
			},
			open1(index){
				let img = []
				this.imgs1.forEach(item=>{
					img.push(item.img || item.thumbimg)
				})
				uni.previewImage({
					urls:img,
					current:index
				})
			},
			getImg(id){
				GetCityImg({id:id}).then(res=>{
					this.imgs = res.data
				})
			},
			getZy(id){
				GetCityHonor({id:id}).then(res=>{
					this.imgs1 = res.data
				})
			},
			open(){
				this.$refs.open.show()
			},
			showhaibao(){
				uni.showLoading({ mask:true,title:'海报制作中',mask:true})
				CreateQrcode({type:5,id:this.id}).then(res=>{
					uni.hideLoading()
					if(res.status==0){
						uni.showToast({
							title:'海报制作失败...'
						})
						return
					}
					this.$refs.haibao.show(res.data.qrcode)
				})
			},
			changeSc(){
				if(! JSON.parse(uni.getStorageSync('userinfo')).nickname ){
					uni.showModal({
						title:'提示',
						content:'需完成登录授权后方能收藏',
						success: (res) => {
							uni.switchTab({
								url:'/pages/my/my'
							})
						},
					})
					return
				}
				gz.AttendAddOrCancel({identification:this.data.id,type:6,name:this.data.city_name}).then(res=>{
					if(res.status==1){
						this.isSc=!this.isSc
					}
				})
			},

			getdetail(id){
				GetSuCityInfo({city_id:this.id}).then(res=>{
					this.data = res.data
				})
			},
			toPage(page){
				uni.navigateTo({
					url:`/pages/${page}/${page}`
				})
			},
			phone(){
				uni.makePhoneCall({
						phoneNumber: this.data.phone||'400-962-5108' //仅为示例
				});
			},
			back(){
				uni.navigateBack({
					delta:1
				})
			},
			toChain(index,index1){
				this.item = this.chainList.slice(index*10,10*(index+1))[index1]
				this.getGStotal()
				this.getGXtotal()
				this.getQBtotal()
				this.getQTtotal()
			},
			toChain1(index){
				this.item = this.chainList[index]
				this.getGStotal()
				this.getGXtotal()
				this.getQBtotal()
				this.getQTtotal()
			},
			toMap(){
				uni.openLocation({
					latitude : parseFloat(this.data.lat),
					longitude: parseFloat(this.data.lng),
					name:this.data.city_name,
					address:this.data.address,
					success: function () {
							console.log('success');
					},
					fail : function (err) {
							console.log(err);
					},
				})
			},
			toDetailChain(){
				return
				let item = JSON.parse(JSON.stringify(this.item))
				item.cityItem = {
					id:this.data.id,
					park_name:this.data.park_name,
				}
				uni.showLoading({ mask:true,
					title:'正在加载'
				})
				myIndustrychain({chain_id:item.id,id:93}).then(res=>{
					item.children=res.data	
					uni.hideLoading()
					uni.navigateTo({
						url:"/subPage/pages/chainDetail2/chainDetail2?chain="+ JSON.stringify(item) 
					})
				})
			}
		},
	}
</script>

<style lang="scss" scoped>
page,.park_d{
	width: 100%;
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
}
.park_d{
	overflow-y: auto;
	overflow-x: hidden;
}
.post_r{
	position: relative;
}
.see1{
	position: absolute;
	right: 0;
	bottom: 0;
	min-width: 80px;
	background-color: rgba($color: #000000, $alpha: .5);
	color: #fff;
	display: flex;
	align-items: center;
	font-size: 14px;
	padding: 2px 14px;
}
.chain_view{
	padding: 10px;
	width: calc(100% - 20px);
	.title_c{
		display: inline-block;
		padding: 0 10px;
		height: 28px;
		line-height: 28px;
		color: #fff;
		background: linear-gradient(45deg, #0091FF66 0%, #0091FF 100%);
		border-radius: 2px;
	}
	.c_main{
		width: calc(100% - 20px);
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
		background-color: #fafafa;
		padding: 12px 10px;
		.m_item{
			width: 25%;
			height: 70px;
			text-align: center;
			.title_m_i{
				margin: 8px 0 10px 0px;
				position: relative;
				// &::before{
				// 	content: ' ';
				// 	position: absolute;
				// 	top: 2px;
				// 	left: -10px;
				// 	height: 16px;
				// 	width: 4px;
				// 	background-color: #FF5C00;
				// }
			}
			.num{
				color: #0091FF;
				font-size: 22px;
				// margin-left: 40px;
				margin-bottom: 10px;
				font-weight: 800;
			}
			.jia{
				color: #666;
				font-weight: 400;
				font-size: 14px;
			}
		}
	}
}
.swiper{
	width: 100%;
	height: 210px;
	position: relative;
	.swiper_item{
		width: 100%;
		height:100%;
		image{
			width: 100%;
			height:100%;
		}
	}
}
.swiper1{
	width: 100%;
	height: 180px;
	margin-top: 15px;
	margin-bottom: 20px;
	.swiper_item1{
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.small{
		width:calc(100% - 40px);
		height: 130px;
		transition: all 0.5s;
		background-color: rgba($color: #000000, $alpha: .3);
		box-shadow: 0px 0px 12px 0 rgba($color: #000000, $alpha: .3);
	}
	.big{
		width: calc(100% - 8px);
		height: 170px;
		// margin: auto;
		box-shadow: 0px 0px 12px 0 rgba($color: #000000, $alpha: .3);
	}
}
.open{
	height: 100px !important;
	min-height: 100px !important;
	overflow: hidden !important;
	position: relative !important;
	margin-bottom: 40px;
}
.toopen{
	position: absolute;
	bottom: 0;
	height: 100px;
	line-height: 180px;
	text-align: center;
	width: calc(100% - 28px);
	z-index: 10;
	background: linear-gradient(0deg, rgba(255,255,255,1) 0,rgba(255,255,255,0.2) 100%);
	text-decoration: underline;
	color: #007AFF;
}
.jiesao{
	padding: 0 14px;
	min-height: 100px;
	overflow: hidden;
	transition: all 0.5s;
	position: relative;
	margin-top: 14px;
	
}
	.t_three{
		width: 20px;
		height: 135px;
		background: rgba($color: #FF5100, $alpha: 0.1) ;
		// text-shadow: 0px 0px 3px #FF5100;
		color: #0091FF;
	}
	.chain_content{
		width: calc(100% - 20px);
		margin: 20px 10px 0;
		.swiper{
			height: 120px;
			position: relative;
			.swiper-item{
				height: 120px;
				position: relative;
			}
		}
		.chain_list{
			display: flex;
			overflow-x: scroll;
			height: 110px;
			padding-top: 10px;
			// justify-content: space-between;
			// flex-wrap: wrap;
		}
		.chain_item{
			min-width: 80px;
			max-width: 80px;
			text-align: center;
			color:#666666;
			font-size: 15px;
			margin-bottom: 18px;
			position: relative;
			// margin-right: 10px;
			.rt{
				width: 20px;
				height: 20px;
				position: absolute;
				background-color: #fff;
				top: -10px;
				right: 10px;
				border-radius: 10px;
			}
			image{
				width: 46px;
				height: 46px;
				margin-bottom: 5px;
			}
			view{
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}
		}
	}
.flex_t_i{
	display: flex;
	align-items: center;
	font-size: 14px;
	color: #666;
	.image{
		width: 18px;
		height: 18px;
		margin-right: 6px;
	}
}
.flex{
	display: flex;
	margin: 10px 0 0;
	margin-left: 16px;
	align-items:center;
	// height: 24px;
	.tx{
		position: relative;
		width: 48px;
		max-height:48px;
		// top: -24px;
		margin-right: 6px;
	}
	.level{
		padding:2px 4px;
		height: 16px;
		font-size: 14px;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #FFFFFF;
		line-height: 16px;
		text-align: center;
		background: #0091FF;
		border-radius: 3px;
	}
}
.main{
	width: calc(100% - 32px);
	padding: 0 16px 28px;
	border-bottom: 1px solid #e7e7e7;
	margin-top: 10px;
	.park_name{
		font-size: 18px;
		font-family: PingFangSC-Semibold, PingFang SC;
		font-weight: 600;
		color: #333333;
		line-height: 24px;
		margin-top: 10px;
	}
	.tip{
		margin-top: 4px;
		height: 20px;
		line-height: 20px;
		padding: 0 3px;
		border-radius: 2px;
		border: 1px solid #0091FF;
		margin-left: 4px;
		display: inline-block;
		font-size: 12px;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #0091FF;
	}
	.mj{
		display: flex;
		justify-content: space-between;
		margin: 15px 0;
		.mj_l{
			display: flex;
			border-radius: 14px;
			width: 195px;
			height: 28px;
			background: #F3F3F6;
			justify-content: space-between;
			.l_t{
				width: 76px;
				height: 28px;
				line-height: 28px;
				color: #fff;
				font-size: 14px;
				background: linear-gradient(180deg, #0091FF99 0%, #0091FF 100%);
				border-radius: 14px 0px 14px 14px;	
				text-align: center;
			}
			.num{
				width: 120px;
				font-size: 14px;
				font-family: PingFangSC-Medium, PingFang SC;
				font-weight: 500;
				color: #666666;
				text-align: center;
				line-height: 28px;
			}
		}
		.mj_r{
			height: 26px;
			line-height: 26px;
			text-align: center;
			background: #FEEEE7;
			border-radius: 14px;
			font-size: 14px;
			font-weight: 400;
			color: #FC5517;
			padding: 0 10px;
		}
	}
	.add{
		display: flex;
		justify-content: space-between;
		align-items: center;
		.img3{
			min-width: 18px;
			max-width: 18px;
			margin-right: 6px;
		}
		.add_l{
			font-size: 14px;
				font-weight: 400;
				color: #666666;
				width: calc(100% - 60px);
				.l_f{
					display: flex;
					align-items: center;
				}
			}
		.add_r{
			display: flex;
			text-align: center;
			justify-content: space-between;
			width: 84px;
			font-size: 12px;
			font-weight: 400;
			color: #FC5517;
		}
	}
}
.left_title{
	border-radius: 4px;
	font-size: 16px;
	// letter-spacing: 2px;
	font-weight: 800;
	line-height: 22px;
	font-family: YouSheBiaoTiHei;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	padding: 0 20px 0 20px;
	// font-style:oblique;
	margin: 10px 7px 0px 15px;
}
.t_two{
	width: 20px;
	height: 88px;
	background: rgba($color: #5C8FF6, $alpha: 0.1) ;
	// text-shadow: 0px 0px 3px #FF3950;
	color: #5C8FF6;
}
.t_one{
	width: 20px;
	height: 135px;
	background:rgba($color: #00B896, $alpha: 0.1);
	// text-shadow: 0px 0px 3px #008926;
	color: rgba($color: #00B896, $alpha: 0.9);
}
.rycs{
	display: flex;
	.right_c{
		width: calc(100% - 90px);
		height: 88px;
		margin-top: 10px;
	}
	.image-container,.swiper-item{
		height: 88px;
	}
	.image-container1,.swiper-item1{
		height: 135px;
	}
	.swiper-item{
		width: 128px !important;
		height: 88px;
		position: relative;
		.name{
			position: absolute;
			left: 10px;
			width: calc(100% - 20px);
			top: 20%;
		}
		.name1{
			position: absolute;
			bottom: 0px;
			left: 0px;
			// border-radius: 8px;
			height: 100%;
			width: 121px;
			font-size: 16px;
			text-align: center;
			display: flex;
			align-items: center;
			justify-content: center;
			background-color: rgba($color: #000000, $alpha: 0.3);
			// font-weight: 800;
			color: #fff;
			font-style: '微软雅黑';
			// border-radius: 8px;
		}
		image{
			width: 121px;
			height: 88px;
			border-radius: 4px;
		}
	}
	.swiper-item1{
		width: 157px !important;
		padding-left: 5px;
		image{
			width: 150px;
			height: 110px;
			border-radius: 4px;
		}
	}
}
.title{
	height: 18px;
	font-size: 18px;
	font-family: PingFangSC-Medium, PingFang SC;
	font-weight: 700;
	color: #333333;
	line-height: 18px;
	margin: 40px 20px 20px 20px;
}
.bottom{
	position: fixed;
	justify-content: space-between;
	align-items: center;
	bottom: 0;
	// width: calc(100% - 20px);
	width:100%;
	// padding: 0 10px;
	height: 54px;
	background: #FFFFFF;
	display: flex;
	box-shadow: 0px -2px 2px #e7e7e7;
	z-index: 100;
	.btn{
		font-size: 18px;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #FFFFFF;
		text-align: center;
		height: 54px;
		line-height: 54px;
		background: linear-gradient(90deg, #FE8E33 0%, #FC5517 100%);
		// border-radius: 23px;
		width: 180px;
	}
	.sc{
		font-size: 12px;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #666666;
		text-align: center;	
		// width: ;
		position: relative;
		image{
			width: 24px;
			height: 24px;
		}
		.num{
			position: absolute;
			font-size: 12px;
			background-color: red;
			height: 14px;
			line-height: 14px;
			border-radius: 7px;
			padding: 0 4px;
			color: #fff;
			right: -5px;
			top: -5px;
		}
	}
}
.pl_item{
	display: flex;
	margin: 10px 16px;
	width: calc(100% - 32px);
	.tx{
		width: 24px;
		height: 24px;
		margin-right: 10px;
	}
	.r{
		width: calc(100% - 34px);
		padding-bottom:10px;
		border-bottom: 1px solid #E9EBEE;
		.top{
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 10px;
			.name{
				font-size: 14px;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #507DAF;
			}
			.time{
				font-size: 14px;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #999999;
			}
		}
		.content{
			padding-top:10px;
			font-size: 16px;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #333333;
		}
	}
}
.title_pj{
	font-size: 18px;
	font-family: PingFangSC-Medium, PingFang SC;
	font-weight: 500;
	color: #333333;
	line-height: 25px;
	margin: 16px;
	width: calc(100% - 32px);
	display: flex;
	justify-content: space-between;
	.right{
		display: flex;
		align-items: center;
			image{
				width: 15px;
				margin-right: 5px;
			}
			font-size: 14px;
			font-weight: 400;
			color: #FF5100;
	}
}
.city_name{
	position: absolute;
	top:8px;
	left: 0px;
	padding: 5px;
	font-size: 14px;
	background: #FA6400;
	border-radius: 4px;
	color: #fff;
}
.park_name1{
	// height: 24px;
	font-size: 20px;
	font-weight: 800;
	color: #000000;
	// line-height: 22px;
	// white-space: nowrap;
	// text-overflow: ellipsis;
	// overflow: hidden;
	margin: 0 10px;
	width: calc(100% - 130px);
	// margin-top: 5px;
}
.see{
	display: flex;
	color: #fff;
	font-size: 12px;
	position: absolute;
	left: 8px;
	top: 90px;
	align-items: center;
}
.see_img{
	width: 14px !important;
	height: 14px;
	margin-right: 4px;
}
.m_left{
	margin-left: 10px;
}
.add{
	display: flex;
	justify-content: space-between;
	color: #999999;
	font-size: 12px;
	// padding-right: 5px;
	margin-top: 5px;
	align-items: center;
}
.add_item{
	display: flex;
	align-items: center;
}
.item_com{
	background: #FFFFFF;
	box-shadow: 0px 2px 2px 2px rgba(191, 191, 191, 1);
	border-radius: 6px;
	padding: 14px 12px;
	margin: 10px 5px;
	width: calc(100% - 34px);
	display: flex;
	position: relative;
	.score{
		position: absolute;
		right: 16px;
		font-size: 22px;
		color: #f93;
	}
	image{
		width: 36px;
		height: 36px;
		margin-right: 8px;
	}
	.name1{
		width: 70%;
	}
	.name2{
		width: 100%;
	}
	.name{
		font-size: 14px;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #333333;
		line-height: 21px;
	}
	.info{
		font-size: 12px;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #999999;
		line-height: 17px;
	}
}
.title2{
	margin: 30px 10px 20px 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	.hb{
		width: 70px;
		height: 18px;
		font-size: 14px;
		font-weight: 400;
		color: #FA6400;
		line-height: 18px;
		margin-left: 8px;
	}
	.more{
		font-size: 13px;
		font-family: PingFangSC-Medium, PingFang SC;
		font-weight: 500;
		color: #666666;
		line-height: 13px;
	}
}
.flex_t{
	display: flex;
	align-items: center;
	.t{
			width: 90px;
			text-align: center;
			color: #666;
			font-size: 16px;
			position: relative;
			.t_a{
				position: absolute;
				bottom: 0px;
				width: 50px;
				left: 20px;
				z-index: -1;
				transition:all 0.2s;
			}
			.left1{
				transform: translateX(90px);
			}
			.left2{
				transform: translateX(180px);
			}
	}
	.t1{
		width: 120px;
		.t_a{
			left: 35px;
		}
	}
	.shu{
		width: 1px;
		height: 16px;
		background-color: #ccc;
	}
	.active{
		font-size: 18px;
		font-weight: 700;
		color: #333333;
	}
}
.box_item{
	width: calc(100% - 44px);
	margin: 10px 10px;
	background: #FFFFFF;
	box-shadow: 0px 2px 2px 2px rgba(191, 191, 191, 1);
	border-radius: 6px;
	display: flex;
	padding: 12px;
	position: relative;
	image{
		width: 36px;
		height: 36px;
		margin-right: 8px;
	}
	.score{
		position: absolute;
		right: 16px;
		font-size: 22px;
		color: #f93;
	}
	.name1{
		width: 70%;
	}
	.name{
		font-size: 15px;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 700;
		color: #111;
		line-height: 21px;
	}
	.info{
		font-size: 12px;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #999999;
		line-height: 17px;
	}
}
	.nomore{
		height: 60px;
		line-height: 60px;
		text-align: center;
		color: #888;
	}
	.loading{
		width: 100%;
		height: 60px;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 14px;
		color: #888;
		image{
			width: 32px;
			height: 32px;
			margin-right: 10px;
			animation: zhuan 1.2s linear infinite;
		}
	}
	@keyframes zhuan {
		0% {
			transform: rotate(0deg);
		}
		50% {
			transform: rotate(180deg);
		}
		100% {
			transform: rotate(360deg);
		}
	}
	.navbar {
			/*分类*/
			width: 100%;
			// height: 36px;
			// position: sticky;
			// top: 0;
			z-index: 10;
			background-color: #fff;
			box-shadow: 0 2px 3px 0 rgba($color: #000000, $alpha: .3);
			padding-bottom: 10px;
			scroll-view {
				width: calc(100% - 30px);
				margin: 0 30rpx;
				white-space: nowrap;
				position: relative;
				.item {
					position: relative;
					display: inline-block;
					margin: 4px 12px 0;
					// height: 80rpx;
					text-align: left;
					padding-top: 7rpx;
					//line-height: 80rpx;
					&:first-child {
						margin-left: 10rpx;
					}
					&:after {
						content: '';
						width: 0;
						height: 0;
						position: absolute;
						left: 50%;
						bottom: 0;
						transform: translateX(-50%);
						transition: 0.3s;
					}
					.text {
						position: relative;
						width: auto;
						height: auto;
						line-height: auto;
						display: inline-block;
						text {
							font-size: 15px;
							font-weight: bold;
							color: #333;
						}
						image {
							position: absolute;
							top: 16rpx;
							right: -14rpx;
							width: 50rpx;
							height: 50rpx;
							display: none;
						}
					}
				}
				.current {
					&:after {
						width: 50%;
					}
					.text {
						position: relative;
						// padding-bottom: 5px;
						text {
							font-size: 18px;
							font-weight: bold;
							color: #333;
						}
						image {
							display: block;
						}
						&:after {
							content: '';
							bottom: -2px;
							left: 50%;
							transform: translateX(-50%);
							width: 50px;
							height: 10px;
							border-radius: 1px;
							// background-color: #ff9933;
							background: url(https://wqq103910.oss-cn-hangzhou.aliyuncs.com/images/4/2020/09/t_a.png) no-repeat;
							background-size: 100% 100%;
							position: absolute;
							z-index: -1;
						}
					}
				}
			}
		}
.item_p{
	width: calc(100% - 68px);
	margin: 10px 22px;
	background: #FFFFFF;
		box-shadow: 0px 2px 2px 2px rgba(191, 191, 191, 1);
	border-radius: 6px;
	display: flex;
	padding: 12px;
	position: relative;
	image{
		width: 36px;
		height: 36px;
		margin-right: 8px;
	}
	.score{
		position: absolute;
		right: 10px;
		font-size: 10px;
		color: #333;
	}
	.name1{
		width: 100%;
	}
	.name{
		font-size: 14px;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #333;
		line-height: 21px;
	}
	.info{
		font-size: 12px;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #999999;
		line-height: 17px;
	}
}
.score1{
	position: absolute;
	right: 10px;
	font-size: 12px;
	color: #333;
}
.userinfo{
	position:fixed;
	bottom:0;
	z-index:1000;
	display:flex;
	align-items:center;
	background:#ff9933;
	color:#fff;
	padding:15px 20px;
	width:calc(100% - 40px);
	box-shadow: 0 -2px 2px 0 rgba(0,0,0,0.2);
	.img{
		width:42px;
		height:42px;
		border-radius:21px;
		margin-right:20px;
	}
	.btn{
		position:absolute;
		right:30px;
		border-radius:4px;
		padding:4px 8px;
		background:#fff;
		color:#ff9933;
	}
	.img1{
		position:absolute;
		right:0;
		top:-5px;
		height:18px;
		width:18px;
	}
}
.phone_div{
	position: fixed;
	z-index: 100;
	left: 10px;
	width: calc(100% - 20px);
	height: 80px;
	bottom: 80px;
	border-radius: 4px;
	background-color: #EDEDEF;
	display: flex;
	align-items: center;
	.phone_img{
		width: 60px;
		height: 60px;
		border-radius: 30px;
		margin-left: 20px;
		margin-right: 14px;
	}
	.phone_t{
		.phone_t1{
			font-size: 17px;
			font-weight: 800;
			color: #1d1d1b;
			margin-bottom: 4px;
		}
		.phone_t2{
			font-size: 13px;
			color: #333;
		}
	}
	.phone_btn{
		background-color: #05C160;
		color: #fff;
		width: 100px;
		line-height: 36px;
		height: 36px;
		font-size: 16px;
		border-radius: 3px;
		position: absolute;
		right: 20px;
	}
	.img1{
		position:absolute;
		right:-6px;
		top:-6px;
		height:18px;
		width:18px;
	}
}
.d_titla{
	width: 100%;
	background: #F4F8FF;
	display: flex;
	align-items: center;
	padding: 10px 14px;
	margin-top: 40px;
	image{
		width: 28px;
		height: 28px;
		margin-right: 12px;
	}
	.title_text{
		font-size: 18px;
		font-family: PingFangSC-Medium, PingFang SC;
		font-weight: 700;
		color: #333333;
	}
}
// #ifndef APP-PLUS
.bottom_list{
	height: calc(100% - 180px);
	margin-top: 20px;
}
// #endif
.index_list{
	height: calc(100% - 50px);
	position: relative;
}
.type_div{
	background-color: #fff;
}
.listType{
	width: 25%;
	text-align: center;
	height: 50px;
	line-height: 50px;
	background: #fff;
}
.active_item{
	font-size: 18px;
	position: relative;
	font-weight: bold;
	&::before{
		content: ' ';
		position: absolute;
		bottom: 4px;
		height: 3px;
		width: 60px;
		background-color: #0091FF;
		border-radius: 3rpx;
		left: 50%;
		transform: translateX(-50%);
	}
}
</style>

